/* console.log( typeof 'hello world'); */

/* let s = 'hello' 
let n: typeof s
n = 'hello'
n = 100 */

//预定义类型 RetrunType<T>

/* type Predicate = (x:unknown) => boolean
type k = ReturnType<Predicate>

function f() {
  return {
    x:10,
    y:3
  }
}

type P = ReturnType<typeof f>

const p:P = 100 */
function masgbox () {}
let shouldContinue: typeof masgbox
/* shouldContinue = 100 */